home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!lorelei.demon.co.uk
- From: John Croudy <john@lorelei.demon.co.uk>
- Newsgroups: comp.lang.c++
- Subject: Re: Just Started Doing A BTEC in Computer Studies & Need Help With C++
- Followup-To: comp.lang.c++,utexas.class.cs105.c++
- Date: Mon, 8 Apr 96 17:43:22 GMT
- Organization: home
- Message-ID: <9604081743.AA001pk@lorelei.demon.co.uk>
- References: <828875639.20834@dixey.demon.co.uk>
- X-NNTP-Posting-Host: lorelei.demon.co.uk
- X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
- X-Mail2News-Path: relay-4.mail.demon.net!post.demon.co.uk!lorelei.demon.co.uk
-
- On Sun, 07 Apr 1996 11:13:51 GMT, P F J wrote:
-
- > I have to develope a MFC CObject which incorparates standard utility
- > classes such as CSTRING and CDATE.
- > I have no idea what this means & my tutor isn't helping much.
-
- It sounds like you've been thrown in at the deep end and left to drown!
- If you have no C++ experience, then learning MFC is a nightmare because
- you have to have C++ knowledge to understand what it's all about. I
- started learning Windows and MFC and (Visual) C++ all at the same
- time... needless to say I went insane. I had to stop and learn C++ in
- isolation first. Then I could go back to MFC and understand what it
- meant!
-
- > I guess that the CObject works a bit like an external sub-routing that
-
- A CObject is a little C++ class. It's what most of the rest of the MFC
- classes are derived from. On it's own it's not much use. The idea is
- to use it as a base class to start deriving your own classes. For example:
-
- class MyClass : public CObject // Derive a class from CObject
- {
- CString m_String; // Use a CString here
- CDate m_Date; // Use a CDate here
-
- ... blah ...
- };
-
- Of course, you have to fill in all the details and this might not even
- be anything like what your tutor wants, but it gives you an idea of
- where things might go!
-
- > If you know what the hell I've just being talking about, prehaps you
- > could tell me!
-
- If you don't understand what I just wrote above, then I recommend doing
- what I did... take a few weeks aside to read about C++ and try out
- things without the added confusion of Windows and MFC.
-
- John
- xxxx
-